package com.yonyou.cyxdms.basedata.service.dto.vehiclemodel;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 颜色 - 新增/编辑DTO
 *
 * @author Tansj
 * @since 11:10 2019-11-16
 */
@ApiModel(value = "CarColorDTO", description = "颜色 - 新增/编辑DTO")
public class CarColorDTO {

    @ApiModelProperty(value = "颜色主键ID-编辑时必传，新增传递null")
    private Long colorId;

    private String dealerCode;

    @ApiModelProperty(value = "颜色类型-1608")
    @NotNull(message = "颜色类型不能为空")
    private Integer colorType;

    @ApiModelProperty(value = "颜色代码")
    @NotNull(message = "颜色类型不能为空")
    private String colorCode;

    @ApiModelProperty(value = "颜色名称")
    @NotNull(message = "颜色名称不能为空")
    private String colorName;

    @ApiModelProperty(value = "数据来源-1045")
    private Integer dataSources;

    @ApiModelProperty(value = "是否有效-1004")
    @NotNull(message = "是否有效不能为空")
    private Integer isValid;

    @ApiModelProperty(value = "appId", hidden = true)
    private String appId;

    @ApiModelProperty(value = "ownerCode", hidden = true)
    private String ownerCode;

    @ApiModelProperty(value = "版本号-编辑时必传")
    private Integer recordVersion;


    public Long getColorId() {
        return colorId;
    }

    public void setColorId(Long colorId) {
        this.colorId = colorId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public Integer getColorType() {
        return colorType;
    }

    public void setColorType(Integer colorType) {
        this.colorType = colorType;
    }

    public String getColorCode() {
        return colorCode;
    }

    public void setColorCode(String colorCode) {
        this.colorCode = colorCode;
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorName(String colorName) {
        this.colorName = colorName;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getOwnerCode() {
        return ownerCode;
    }

    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    public Integer getRecordVersion() {
        return recordVersion;
    }

    public void setRecordVersion(Integer recordVersion) {
        this.recordVersion = recordVersion;
    }

    @Override
    public String toString() {
        return "CarColorDTO{" +
                "colorId=" + colorId +
                ", dealerCode='" + dealerCode + '\'' +
                ", colorType=" + colorType +
                ", colorCode='" + colorCode + '\'' +
                ", colorName='" + colorName + '\'' +
                ", dataSources=" + dataSources +
                ", isValid=" + isValid +
                ", appId='" + appId + '\'' +
                ", ownerCode='" + ownerCode + '\'' +
                ", recordVersion=" + recordVersion +
                '}';
    }
}
